package com.kaibes.module.value.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.kaibes.web.feign.FeignConfig;

@FeignClient(value = "${kaibes.module.map.client.service-name}", configuration = FeignConfig.class)
public interface MapClient {

    @GetMapping("${kaibes.module.map.client.map-uri:/maps}/{key}")
    String getByKey(@PathVariable String key);
    
    @PostMapping("${kaibes.module.map.client.map-uri:/maps}/{key}")
    String saveByKey(@PathVariable String key, @RequestBody String value);
    
}
